package com.cyx.spring.io.test1;

import com.cyx.spring.annotation.Autowired;
import com.cyx.spring.annotation.Component;
import com.cyx.spring.annotation.Value;
import com.cyx.spring.io.aop.Around;
import com.cyx.spring.io.aop.Polite;
import com.cyx.spring.io.test2.B1;
import jakarta.annotation.PostConstruct;
import lombok.Getter;
import lombok.Setter;

/**
 * A
 *
 * @author yongxiang
 * @date 2024/10/22 14:36
 * @desc
 */
@Component
@Getter
@Setter
@Around("testInvokeHandler")
public class A1 {

    @Value("${com.test.a}")
    private String a;

    @Value("${com.test.b}")
    private String b;

    @Autowired
    private B1 b1;


    public void a(){
        System.out.println("a");
    }

    @Polite
    public void b(){
        System.out.println("b");
    }

    @PostConstruct
    public void init(){
        System.out.println("init...");
    }



}
